class displayresultrow():
	def __init__(self, plac, name, clubname, time, timeplus, status, splits):
                self.plac = plac
                self.name = name
                self.clubname = clubname
		self.time = time
		self.timeplus = timeplus
		self.status = status
		self.splits = splits
	def __lt__(self, other):

		if self.timeplus != '' and other.timeplus == '':
			return True
   		if self.timeplus == '' and other.timeplus != '':
			return False
		if self.timeplus != '' and other.timeplus != '':
			return self.time < other.time

		if len(self.splits) > 0:
			pos = len(self.splits)-1
			while pos >= 0:
				if self.splits[pos] == '-' and other.splits[pos]  != '-':
					return False
				if self.splits[pos] != '-' and other.splits[pos]  == '-':
					return True
				if self.splits[pos] != '-' and other.splits[pos]  != '-':
					return self.splits[pos] < other.splits[pos]
				pos = pos -1
			return False
		else: 
			return False

